From 2579d22937ec662a78597f56af5f4886826a475b Mon Sep 17 00:00:00 2001 From: David Vrabel Date: Fri, 23 Mar 2012 13:45:28 +0000 Subject: [PATCH] Fix test for NULL command line in cmdline_parse() Signed-off-by: David Vrabel Committed-by: Keir Fraser --- xen/common/kernel.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 7141790a3e..91dc32eedf 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -55,11 +55,11 @@ void __init cmdline_parse(const char *cmdline) struct kernel_param *param; int bool_assert; - safe_strcpy(saved_cmdline, cmdline); - - if ( p == NULL ) + if ( cmdline == NULL ) return; + safe_strcpy(saved_cmdline, cmdline); + for ( ; ; ) { /* Skip whitespace. */ -- 2.30.2